package org.example.code.entity;

import java.math.BigDecimal;

public class EatingGoods extends Goods{
    //好吃吗
    private boolean isYammy;

    public EatingGoods(Integer ID, String name, Integer quantity, BigDecimal price, String category, boolean isYammy) {
        super(ID, name, quantity, price, category);
        this.isYammy = isYammy;
    }

    public EatingGoods() {
    }

    public boolean isYammy() {
        return isYammy;
    }

    public void setYammy(boolean yammy) {
        isYammy = yammy;
    }


    @Override
    public String yammyToString() {

        return "" + isYammy;
    }
}
